﻿@model IEnumerable<Gfw.Web.Models.Account.TransferQueryModel>
@{
    Layout = null;
}

@using C.Mvc
@using MvcContrib.UI.Grid;

@using (Ajax.BeginForm("EMoneyQueryList", "User", null, Gfw.Web.Common.ViewHelper.AjaxGet))
{
    @Html.Grid(Model).Columns(
            column =>
            {
                column.For(x => x.TradeType).Named("类型");
                column.For(x => x.Income).Named("收入");
                column.For(x => x.Outlay).Named("支出");
                column.For(x => x.Balance).Named("账户余额");
                column.For(x => x.TradeDate).Named("时间");
                column.For(x => x.ToUserLoginName).Named("对方帐号");
                column.For(x => x.TradeAbstract).Named("摘要");
            }).Attributes(id => "mytable", cellpadding => "0", cellspacing => "0").Empty("没有相关信息");


    @Ajax.DataGridPager().Totals(ViewBag.TotalSize).PageIndex(ViewBag.PageIndex).PagePropertyName("page").Model(new { did = ViewBag.did, userID = ViewData["userID"], start = ViewData["start"], end = ViewData["end"], tradeType = ViewData["tradeType"] }).AjaxOptions(Gfw.Web.Common.ViewHelper.AjaxGet);
}